﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="DanhSachKhachHang.aspx.cs" Inherits="Admin_DanhSachKhachHang" Title="Untitled Page" %>

<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="menuPlaceHolder" Runat="Server">
<h5>Menu</h5>
     <ul class="Actions">
        <li><a href="DanhSachNhanVien.aspx">Danh Sách Nhân Viên</a></li>
        <li><a href="ThemMoiNhanVien.aspx">Thêm Mới Nhân Viên</a></li>
    </ul> 
     <ul class="Actions">
        <li class ="Selected"><a href="DanhSachKhachHang.aspx">Danh Sách Khách Hàng</a></li>
        <li><a href="ThemMoiKhachHang.aspx">Thêm Mới Khách Hàng</a></li>
    </ul>  
     <ul class="Actions">
        <li><a href="DanhSachDoanhNghiep.aspx">Danh Sách Doanh Nghiệp</a></li>
        <li><a href="ThemMoiDoanhNghiep.aspx">Thêm Mới Doanh Nghiệp</a></li>
    </ul>     
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
<div style="padding:12px 12px 12px 12px;">
 <div>
       
        <div class="title">
            Danh sách khách hàng
        </div>
        <div style="width:100%;">
            <div style="display:table-cell; width:85%;float:left;">
                Tên khách hàng: 
                <asp:TextBox ID="txt_TenKH" runat="server"></asp:TextBox>
                Giới tính: 
                <asp:TextBox ID="txt_GioiTinh" runat="server"></asp:TextBox>
                Địa chỉ:
                <asp:TextBox ID="txt_DiaChi" runat="server"></asp:TextBox>
                Điện thoại:
                 <asp:TextBox ID="txt_DienThoai" runat="server"></asp:TextBox>
                <asp:Button ID="btn_Search" runat="server" Text="Tìm kiếm" OnClick="btn_Search_Click" />
                
                
            
            </div>
            <div class="addnewrow" style="float: right; width: 10%">             
                <asp:LinkButton ID="lbt_Xoa" runat="server" OnClick="lbt_Xoa_Click" Font-Bold="True" ForeColor="Red">Xóa</asp:LinkButton>
            </div>      
        </div>
        <div>
        <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound" OnItemCommand="Repeater1_ItemCommand">
            <HeaderTemplate>
                <table cellspacing="1" cellpadding="3" width="100%" bgcolor="#cccccc" border="0">
                <thead>
                    <tr class="listtableheader">
                        <th>Mã khách hàng</th>
                        <th>Tên khách hàng</th>
                        <th>Giới tính</th>
                        <th>Tài khoản</th>                        
                        <th>Email</th>
                        <th>Địa chỉ</th>
                        <th>Điện thoại</th>
                        <th>Sửa</th>
                        <th>
                            <input id="cb_All" type="checkbox" onclick="CheckAll(1);" />
                            <a href="javascript:CheckAll(2)">Chọn hết</a>
                        </th>
                    </tr>
                </thead>
                <tbody>
            </HeaderTemplate>
            <ItemTemplate>
              <tr>
                <td><%#Eval("MaKH") %></td>
                <td><%#Eval("HoTen") %></td>
                <td><%#Eval("GioiTinh") %></td>
                <td><%#Eval("TaiKhoan") %></td>
                <td>
                   <%#Eval("Email") %>
                </td>
                 <td>
                   <%#Eval("DiaChi") %>
                </td>
                 <td>
                   <%#Eval("DienThoai") %>
                </td>
                <td><asp:HyperLink ID="hpl_Edit" Text="Edit" runat="server" /></td>
                <td>
                    <asp:CheckBox ID="cb_Xoa" runat="server" />
                    <asp:HiddenField ID="hf_id" Value='<%#Eval("MaKH") %>' runat="server" />
                </td>
              </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody>
            </table>   
            </FooterTemplate>
        </asp:Repeater>  
        </div>
        <div style="width:100%;"> 
            <div style="float:left;">               

            </div>
            <cc1:PagerV2_8 ID="pager" runat="server" OnCommand="pager_Command" />
            
        </div>
 </div>
 </div>
</asp:Content>

